package com.zut.dao;

import com.zut.entity.Student;

import java.util.List;
import java.util.Map;

public interface StudentDao {
    String findMaxId(Integer classId);

    void addStudent(Student stu);

    List<Map<String, Object>> findAllStudents();

    List<Map<String, Object>> findStudentsLikeName(String s);

    List<Map<String, Object>> findStudentsLikeClassName(String s);

    void updateClassesById(String stuId, String clsId);

    int deleteStudentById(String stuId);

    List<Student> findStudentsByTidAndCid(String tid, int id);

    Student findStudentByIdAndPassword(String sid, String password);

    void updatePassword(String id, String newPwd);

    void updatePhoneNum(String id, String newPhoneNum);

    void updateAddress(String id, String newAddress);
}
